home *** CD-ROM | disk | FTP | other *** search
- G.SetGroup( "Cam" )
- local Cam = G.Create( "Data/BasicCamera.xml");
- local pos = Vector3(-10,0,0);
- Cam.SetPosition( pos );
-
- --G.AddLine( Vector3(0,0,0) , Vector3(200,0,0) );
- --G.AddLine( Vector3(0,0,0) , Vector3(200,0,0) );
-
- G.Create( "Data/Terra.xml" );
-
- local obj = G.Create( "Data/ModelCog.xml" );
- obj.SetPosition( Vector3(60,20,60) );
- --obj.SetAnimation( "Fire" );
-
- rpos = Vector3(60,20,60);
- function SpawnBolts()
- local r = math.random( 0 , 300 );
- if( r == 0 ) then
- local offset = math.random() * 3.1468;
- local numBolts = 3;
- for y=1,numBolts do
- vVector = Vector3();
- vVector[1] = (math.random() * 2 - 1) * 0.5;
- --vVector[1] = 0;
- local radius = math.sqrt(1.0 - vVector[1] * vVector[1] );
- --local t = (math.random() * 2 - 1) * 3.1468;
- local t = y * (2*3.14)/ numBolts;
- vVector[0] = math.cos( offset + t ) * radius;
- vVector[2] = math.sin( offset + t ) * radius;
- G.AddLine( Vector3(60,25,60) , Vector3(60,25,60) + vVector * 8 );
- end
- end
- end
-
-
- --numBolts = 5;
- --for y=1,numBolts do
- --local t = y * (2*3.14)/ numBolts;
- --local tpos2 = Vector3( math.cos( t ) * 60 , 0 , math.sin( t ) * 60 );
- --local tpos = Vector3( math.cos( t ) * 120 , 0 , math.sin( t ) * 120 );
- --G.AddLine( tpos2 ,tpos );
- --end
-
-
-
- GMain[ "SpawnBolts" ] = SpawnBolts;
- --Obj = G.Create( "Data/KnotCog.xml" );
- --Obj.SetPosition( Vector3(90, 0 , 90) );
-
-
-
-
-
-